From 44429dc4f45460e60369096bc3665b78b6871be1 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Tue, 13 Oct 2015 04:57:36 -0700 Subject: [PATCH] Removed references to isStatic from the codebase MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: @​public The legacy 'isStatic' property for image sources is no longer used anywhere in our codebase, but was still being generated by the packager and referenced in the JS in various places. This diff removes all the remaining references. Reviewed By: @frantic Differential Revision: D2531263 fb-gh-sync-id: 0bba0bb8473b1baa908ef7507cbf6d83efb0d9ee --- react-packager/src/Bundler/__tests__/Bundler-test.js | 1 - react-packager/src/Bundler/index.js | 1 - 2 files changed, 2 deletions(-) diff --git a/react-packager/src/Bundler/__tests__/Bundler-test.js b/react-packager/src/Bundler/__tests__/Bundler-test.js index 74a246b8..4b0526ad 100644 --- a/react-packager/src/Bundler/__tests__/Bundler-test.js +++ b/react-packager/src/Bundler/__tests__/Bundler-test.js @@ -164,7 +164,6 @@ describe('Bundler', function() { var imgModule_DEPRECATED = { __packager_asset: true, - isStatic: true, path: '/root/img/img.png', uri: 'img', width: 25, diff --git a/react-packager/src/Bundler/index.js b/react-packager/src/Bundler/index.js index 289911d4..1bad8ec6 100644 --- a/react-packager/src/Bundler/index.js +++ b/react-packager/src/Bundler/index.js @@ -263,7 +263,6 @@ class Bundler { ]).then(([dimensions, id]) => { const img = { __packager_asset: true, - isStatic: true, path: module.path, uri: id.replace(/^[^!]+!/, ''), width: dimensions.width / module.resolution,