1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-30 09:20:58 +01:00

Quicksand and global drag and drop - install quicksand listener on event only

Summary: noticed this while doing some other work. didn't really break anything before but no need to install this listener every time we load the global drag and drop behavior; just the once works fine.

Test Plan: home -> profile -> back to home and drag and drop still worked

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12740
This commit is contained in:
Bob Trahan 2015-05-06 12:59:09 -07:00
parent 597566823e
commit 97d011d985
2 changed files with 14 additions and 13 deletions

View file

@ -8,7 +8,7 @@
return array( return array(
'names' => array( 'names' => array(
'core.pkg.css' => 'ca3f6a60', 'core.pkg.css' => 'ca3f6a60',
'core.pkg.js' => 'e9484a4e', 'core.pkg.js' => '74e57ea0',
'darkconsole.pkg.js' => 'e7393ebb', 'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => 'bb338e4b', 'differential.pkg.css' => 'bb338e4b',
'differential.pkg.js' => '3cfa26f9', 'differential.pkg.js' => '3cfa26f9',
@ -459,7 +459,7 @@ return array(
'rsrc/js/core/behavior-file-tree.js' => '88236f00', 'rsrc/js/core/behavior-file-tree.js' => '88236f00',
'rsrc/js/core/behavior-form.js' => '5c54cbf3', 'rsrc/js/core/behavior-form.js' => '5c54cbf3',
'rsrc/js/core/behavior-gesture.js' => '3ab51e2c', 'rsrc/js/core/behavior-gesture.js' => '3ab51e2c',
'rsrc/js/core/behavior-global-drag-and-drop.js' => 'c203e6ee', 'rsrc/js/core/behavior-global-drag-and-drop.js' => 'c8e57404',
'rsrc/js/core/behavior-high-security-warning.js' => 'a464fe03', 'rsrc/js/core/behavior-high-security-warning.js' => 'a464fe03',
'rsrc/js/core/behavior-history-install.js' => '7ee2b591', 'rsrc/js/core/behavior-history-install.js' => '7ee2b591',
'rsrc/js/core/behavior-hovercard.js' => 'f36e01af', 'rsrc/js/core/behavior-hovercard.js' => 'f36e01af',
@ -584,7 +584,7 @@ return array(
'javelin-behavior-durable-column' => '657c2b50', 'javelin-behavior-durable-column' => '657c2b50',
'javelin-behavior-error-log' => '6882e80a', 'javelin-behavior-error-log' => '6882e80a',
'javelin-behavior-fancy-datepicker' => '5c0f680f', 'javelin-behavior-fancy-datepicker' => '5c0f680f',
'javelin-behavior-global-drag-and-drop' => 'c203e6ee', 'javelin-behavior-global-drag-and-drop' => 'c8e57404',
'javelin-behavior-herald-rule-editor' => '7ebaeed3', 'javelin-behavior-herald-rule-editor' => '7ebaeed3',
'javelin-behavior-high-security-warning' => 'a464fe03', 'javelin-behavior-high-security-warning' => 'a464fe03',
'javelin-behavior-history-install' => '7ee2b591', 'javelin-behavior-history-install' => '7ee2b591',
@ -1780,7 +1780,7 @@ return array(
'javelin-dom', 'javelin-dom',
'javelin-vector', 'javelin-vector',
), ),
'c203e6ee' => array( 'c8e57404' => array(
'javelin-behavior', 'javelin-behavior',
'javelin-dom', 'javelin-dom',
'javelin-uri', 'javelin-uri',

View file

@ -90,9 +90,6 @@ JX.behavior('global-drag-and-drop', function(config, statics) {
statics.pending--; statics.pending--;
statics.errors = true; statics.errors = true;
}); });
}
statics.init = statics.init || init();
JX.Stratcom.listen( JX.Stratcom.listen(
'quicksand-redraw', 'quicksand-redraw',
@ -103,4 +100,8 @@ JX.behavior('global-drag-and-drop', function(config, statics) {
statics.enabled = toggle; statics.enabled = toggle;
statics.drop.setIsEnabled(toggle); statics.drop.setIsEnabled(toggle);
}); });
}
statics.init = statics.init || init();
}); });