Skip to content

Commit

Permalink
Refactoring, PointSearch
Browse files Browse the repository at this point in the history
  • Loading branch information
theshock committed Mar 8, 2013
1 parent d067df7 commit 8a7ed4a
Show file tree
Hide file tree
Showing 6 changed files with 1,684 additions and 1,670 deletions.
4 changes: 3 additions & 1 deletion Source/App/MouseHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ authors:
requires:
- LibCanvas
- Mouse
- App
- App.PointSearch
provides: App.MouseHandler
Expand Down Expand Up @@ -45,7 +47,7 @@ declare( 'LibCanvas.App.MouseHandler', {
};
handler.search =
handler.settings.get('search') ||
new App.ElementsMouseSearch();
new App.PointSearch();

this.events.forEach(function (type) {
handler.mouse.events.add( type, function (e) {
Expand Down
13 changes: 8 additions & 5 deletions Source/App/ElementsMouseSearch.js → Source/App/PointSearch.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
---
name: "App.ElementsMouseSearch"
name: "App.PointSearch"
description: "LibCanvas.App.ElementsMouseSearch"
Expand All @@ -16,13 +16,13 @@ requires:
- LibCanvas
- App
provides: App.ElementsMouseSearch
provides: App.PointSearch
...
*/

/** @class App.ElementsMouseSearch */
declare( 'LibCanvas.App.ElementsMouseSearch', {
/** @class App.PointSearch */
declare( 'LibCanvas.App.PointSearch', {

initialize: function () {
this.elements = [];
Expand Down Expand Up @@ -51,4 +51,7 @@ declare( 'LibCanvas.App.ElementsMouseSearch', {
return result;
}

});
});

/** @deprecated */
App.ElementsMouseSearch = App.PointSearch;
3 changes: 3 additions & 0 deletions Source/Context/Context2D.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ requires:
- Core.Canvas
- Context.DrawImage
- Context.Gradients
- Context.Path
- Context.Pixels
- Context.Text
provides: Context2D
Expand Down
1 change: 0 additions & 1 deletion Source/Core/Point.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ authors:
requires:
- LibCanvas
- Geometry
- Utils.Math
provides: Point
Expand Down
2 changes: 1 addition & 1 deletion Source/Plugins/ImageBuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
requires:
- LibCanvas
- Point
- Rectangle
- Shapes.Rectangle
...
*/
Expand Down
Loading

0 comments on commit 8a7ed4a

Please sign in to comment.