Skip to content
Browse files

Delete not needed and add versions of the file

  • Loading branch information...
1 parent 3316361 commit efb30a34b355015cfbfa2b157528078d742ad588 @tcorral committed Aug 3, 2011
Showing with 789 additions and 686 deletions.
  1. 0 .metadata/.lock
  2. +0 −2 .metadata/.plugins/com.aptana.core.io/connections.2
  3. +0 −7 .metadata/.plugins/com.aptana.syncing.core/defaultConnection.2
  4. +0 −2 .metadata/.plugins/com.aptana.syncing.core/sites.2
  5. +0 −1 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
  6. BIN .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
  7. +0 −1 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
  8. BIN .metadata/.plugins/org.eclipse.core.resources/.root/2.tree
  9. +0 −3 .metadata/.plugins/org.eclipse.core.resources/.safetable/com.aptana.core.io.2
  10. +0 −4 .metadata/.plugins/org.eclipse.core.resources/.safetable/com.aptana.syncing.core.2
  11. BIN .metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
  12. +0 −9 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.editor.common.prefs
  13. +0 −3 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.rcp.prefs
  14. +0 −10 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.theme.prefs
  15. +0 −4 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.ui.prefs
  16. +0 −40 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ant.ui.prefs
  17. +0 −11 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.compare.prefs
  18. +0 −4 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
  19. +0 −8 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
  20. +0 −232 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
  21. +0 −65 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.ui.prefs
  22. +0 −3 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.search.prefs
  23. +0 −3 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs
  24. +0 −32 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs
  25. +0 −7 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
  26. +0 −10 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.texteditor.prefs
  27. +0 −22 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
  28. +0 −24 .metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
  29. +0 −3 .metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
  30. +0 −161 .metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
  31. 0 .metadata/.plugins/org.python.pydev/ping.log
  32. +0 −1 .metadata/version.ini
  33. +11 −0 .project
  34. +9 −9 README.md
  35. +7 −4 examples_and_documents/index.html
  36. +1 −1 jsTestDriver.conf
  37. +502 −0 versions/hydra.developer.js
  38. +1 −0 versions/hydra.min.gzipped.js
  39. +258 −0 versions/hydra.min.js
View
0 .metadata/.lock
No changes.
View
2 .metadata/.plugins/com.aptana.core.io/connections.2
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<connections/>
View
7 .metadata/.plugins/com.aptana.syncing.core/defaultConnection.2
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<connection>
-<connection>
-<name>Default</name>
-<source>file:/C:/Users/amischol</source>
-</connection>
-</connection>
View
2 .metadata/.plugins/com.aptana.syncing.core/sites.2
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<sites/>
View
1 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/history.version
@@ -1 +0,0 @@
-
View
BIN .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.index
Binary file not shown.
View
1 .metadata/.plugins/org.eclipse.core.resources/.root/.indexes/properties.version
@@ -1 +0,0 @@
-
View
BIN .metadata/.plugins/org.eclipse.core.resources/.root/2.tree
Binary file not shown.
View
3 .metadata/.plugins/org.eclipse.core.resources/.safetable/com.aptana.core.io.2
@@ -1,3 +0,0 @@
-#safe table
-#Sat Jul 16 18:04:36 CEST 2011
-connections=connections.2
View
4 .metadata/.plugins/org.eclipse.core.resources/.safetable/com.aptana.syncing.core.2
@@ -1,4 +0,0 @@
-#safe table
-#Sat Jul 16 18:04:36 CEST 2011
-defaultConnection=defaultConnection.2
-sites=sites.2
View
BIN .metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources
Binary file not shown.
View
9 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.editor.common.prefs
@@ -1,9 +0,0 @@
-#Sat Jul 16 17:57:19 CEST 2011
-AbstractTextEditor.Color.Background=20,20,20
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
-AbstractTextEditor.Color.Foreground=248,248,248
-eclipse.preferences.version=1
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-AbstractTextEditor.Color.SelectionForeground=60,64,67
-AbstractTextEditor.Color.Background.SystemDefault=false
-currentLineColor=27,27,27
View
3 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.rcp.prefs
@@ -1,3 +0,0 @@
-#Sat Jul 16 17:57:20 CEST 2011
-eclipse.preferences.version=1
-WORKSPACE_ENCODING_SET=true
View
10 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.theme.prefs
@@ -1,10 +0,0 @@
-#Sat Jul 16 18:04:11 CEST 2011
-themeList=Eclipse,IDLE,Slush & Poppies,Zenburnesque,Mac Classic,Monokai Dark,LAZY,iLife 05,Espresso Libre,Django,Sunburst,Twilight,Cobalt,idleFingers,SpaceCadet,Dreamweaver,iPlastic,Pydev,Dawn,Bespin,All Hallow's Eve,Rails Envy,Aptana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EhlYWRpbmc9XCNjZjZhNGNmZl5tYXJrdXAuaGVhZGluZw0KQW5ub3RhdGlvblwgT3ZlcnJpZGVcIC1cIHNlYXJjaFJlc3VsdEluZGljYXRpb249Xm92ZXJyaWRlLnNlYXJjaFJlc3VsdEluZGljYXRpb24NCkFubm90YXRpb25cIE92ZXJyaWRlXCAtXCB4bWxUYWdQYWlyT2NjdXJyZW5jZUluZGljYXRpb249Xm92ZXJyaWRlLnhtbFRhZ1BhaXJPY2N1cnJlbmNlSW5kaWNhdGlvbg0KQW5ub3RhdGlvblwgT3ZlcnJpZGVcIC1cIGh0bWxUYWdQYWlyT2NjdXJyZW5jZUluZGljYXRpb249Xm92ZXJyaWRlLmh0bWxUYWdQYWlyT2NjdXJyZW5jZUluZGljYXRpb24NCkFubm90YXRpb25cIE92ZXJyaWRlXCAtXCBydWJ5QmxvY2tQYWlyT2NjdXJyZW5jZUluZGljYXRpb249Xm92ZXJyaWRlLnJ1YnlCbG9ja1BhaXJPY2N1cnJlbmNlSW5kaWNhdGlvbg0KQW5ub3RhdGlvblwgT3ZlcnJpZGVcIC1cIHB5ZGV2T2NjdXJyZW5jZUluZGljYXRpb249Xm92ZXJyaWRlLnB5ZGV2T2NjdXJyZW5jZUluZGljYXRpb24NCg\=\=
-ACTIVE_THEME=Aptana Studio
-HYPERLINK_COLOR=84,143,160
-hyperlinkColor=84,143,160
-eclipse.preferences.version=1
-ACTIVE_HYPERLINK_COLOR=84,143,160
-hyperlinkColor.SystemDefault=false
View
4 .metadata/.plugins/org.eclipse.core.runtime/.settings/com.aptana.ui.prefs
@@ -1,4 +0,0 @@
-#Sat Jul 16 17:57:18 CEST 2011
-eclipse.preferences.version=1
-IDEHasLaunchedBefore=true
-PerspectiveVersion=101
View
40 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ant.ui.prefs
@@ -1,40 +0,0 @@
-#Sat Jul 16 17:57:21 CEST 2011
-org.eclipse.ant.ui.processingInstructionsColor=73,73,73
-org.eclipse.ant.ui.textColor_underline=false
-org.eclipse.ant.ui.processingInstructionsColor_strikethrough=false
-org.eclipse.ant.ui.processingInstructionsColor_underline=false
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
-org.eclipse.ant.ui.dtdColor_underline=false
-org.eclipse.ant.ui.commentsColor_italic=true
-org.eclipse.ant.ui.textColor_bold=false
-org.eclipse.ant.ui.dtdColor=73,73,73
-org.eclipse.ant.ui.tagsColor_strikethrough=false
-org.eclipse.ant.ui.constantStringsColor_bold=false
-org.eclipse.ant.ui.tagsColor_italic=false
-org.eclipse.ant.ui.commentsColor=95,90,96
-AbstractTextEditor.Color.Foreground=248,248,248
-org.eclipse.ant.ui.textColor=248,248,248
-AbstractTextEditor.Color.Background=20,20,20
-org.eclipse.ant.ui.dtdColor_bold=false
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-org.eclipse.ant.ui.constantStringsColor=143,157,106
-org.eclipse.ant.ui.tagsColor=155,112,63
-org.eclipse.ant.ui.commentsColor_bold=false
-currentLineColor=27,27,27
-org.eclipse.ant.ui.constantStringsColor_italic=false
-org.eclipse.ant.ui.processingInstructionsColor_bold=false
-AbstractTextEditor.Color.Background.SystemDefault=false
-org.eclipse.ant.ui.constantStringsColor_underline=false
-org.eclipse.ant.ui.dtdColor_strikethrough=false
-eclipse.preferences.version=1
-org.eclipse.ant.ui.tagsColor_bold=false
-org.eclipse.ant.ui.textColor_strikethrough=false
-org.eclipse.ant.ui.commentsColor_strikethrough=false
-org.eclipse.ant.ui.textColor_italic=false
-org.eclipse.ant.ui.processingInstructionsColor_italic=false
-org.eclipse.ant.ui.commentsColor_underline=false
-AbstractTextEditor.Color.SelectionForeground=248,248,248
-org.eclipse.ant.ui.dtdColor_italic=false
-org.eclipse.ant.ui.tagsColor_underline=false
-AbstractTextEditor.Color.SelectionBackground=60,64,67
-org.eclipse.ant.ui.constantStringsColor_strikethrough=false
View
11 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.compare.prefs
@@ -1,11 +0,0 @@
-#Sat Jul 16 17:57:19 CEST 2011
-AbstractTextEditor.Color.Background.SystemDefault=false
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-AbstractTextEditor.Color.Foreground=248,248,248
-AbstractTextEditor.Color.SelectionBackground=60,64,67
-currentLineColor=27,27,27
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
-AbstractTextEditor.Color.Background=20,20,20
-AbstractTextEditor.Color.SelectionBackground.SystemDefault=false
-eclipse.preferences.version=1
-AbstractTextEditor.Color.SelectionForeground=248,248,248
View
4 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs
@@ -1,4 +0,0 @@
-#Sat Jul 16 17:57:20 CEST 2011
-version=1
-eclipse.preferences.version=1
-encoding=UTF-8
View
8 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.debug.ui.prefs
@@ -1,8 +0,0 @@
-#Sat Jul 16 17:57:35 CEST 2011
-org.eclipse.debug.ui.consoleBackground=20,20,20
-org.eclipse.debug.ui.outColor=248,248,248
-eclipse.preferences.version=1
-org.eclipse.debug.ui.PREF_CHANGED_VALUE_BACKGROUND=74,65,13
-org.eclipse.debug.ui.inColor=95,175,176
-org.eclipse.debug.ui.PREF_LAUNCH_PERSPECTIVES=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?>\r\n<launchPerspectives/>\r\n
-org.eclipse.debug.ui.errorColor=255,0,0
View
232 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.jdt.ui.prefs
@@ -1,232 +0,0 @@
-#Sat Jul 16 17:57:21 CEST 2011
-java_keyword_strikethrough=false
-pf_coloring_comment_underline=false
-pf_coloring_argument=143,157,106
-java_multi_line_comment_bold=false
-java_keyword_return_underline=false
-AbstractTextEditor.Color.SelectionBackground=60,64,67
-java_keyword_return_bold=false
-semanticHighlighting.methodDeclarationName.enabled=true
-pf_coloring_assignment_bold=false
-java_default_italic=false
-semanticHighlighting.inheritedMethodInvocation.bold=false
-java_operator_italic=false
-semanticHighlighting.enum.enabled=true
-pf_coloring_key_underline=false
-pf_coloring_key_italic=false
-semanticHighlighting.staticFinalField.strikethrough=false
-semanticHighlighting.method.strikethrough=false
-java_doc_default_italic=true
-java_bracket_italic=false
-semanticHighlighting.method.underline=false
-semanticHighlighting.autoboxing.strikethrough=false
-semanticHighlighting.typeParameter.italic=false
-java_annotation=249,238,152
-pf_coloring_key=205,168,105
-java_keyword_bold=false
-semanticHighlighting.localVariableDeclaration.enabled=true
-semanticHighlighting.interface.enabled=true
-java_string_bold=false
-semanticHighlighting.staticMethodInvocation.italic=false
-java_doc_tag_italic=false
-java_doc_link_italic=false
-semanticHighlighting.inheritedMethodInvocation.color=248,248,248
-java_doc_tag_underline=false
-semanticHighlighting.deprecatedMember.enabled=true
-semanticHighlighting.typeParameter.color=248,248,248
-semanticHighlighting.staticMethodInvocation.enabled=true
-semanticHighlighting.number.strikethrough=false
-semanticHighlighting.field.bold=false
-java_type_underline=false
-semanticHighlighting.staticFinalField.bold=false
-semanticHighlighting.parameterVariable.strikethrough=false
-semanticHighlighting.number.underline=false
-semanticHighlighting.staticField.bold=false
-semanticHighlighting.parameterVariable.underline=false
-semanticHighlighting.inheritedMethodInvocation.strikethrough=false
-java_keyword_return=205,168,105
-java_doc_default_strikethrough=false
-pf_coloring_comment_strikethrough=false
-java_doc_keyword_bold=false
-semanticHighlighting.method.color=248,248,248
-semanticHighlighting.annotation.underline=false
-pf_coloring_argument_italic=false
-semanticHighlighting.interface.color=155,112,63
-semanticHighlighting.method.enabled=true
-semanticHighlighting.method.bold=false
-semanticHighlighting.typeArgument.underline=false
-semanticHighlighting.annotationElementReference.color=207,106,76
-semanticHighlighting.field.enabled=true
-AbstractTextEditor.Color.Background=20,20,20
-java_default_strikethrough=false
-java_string=143,157,106
-semanticHighlighting.parameterVariable.enabled=true
-java_type_italic=false
-semanticHighlighting.abstractMethodInvocation.strikethrough=false
-java_doc_tag=155,112,63
-semanticHighlighting.typeArgument.bold=false
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
-semanticHighlighting.inheritedMethodInvocation.italic=false
-semanticHighlighting.staticMethodInvocation.color=248,248,248
-java_type_strikethrough=false
-currentLineColor=27,27,27
-semanticHighlighting.interface.bold=false
-java_default_bold=false
-semanticHighlighting.staticField.enabled=true
-pf_coloring_argument_underline=false
-java_default_underline=false
-java_operator_strikethrough=false
-java_doc_tag_strikethrough=false
-java_keyword_underline=false
-semanticHighlighting.class.bold=false
-semanticHighlighting.field.italic=false
-java_annotation_strikethrough=false
-pf_coloring_assignment=248,248,248
-semanticHighlighting.class.underline=false
-java_doc_link_bold=false
-semanticHighlighting.deprecatedMember.italic=true
-semanticHighlighting.class.color=155,112,63
-pf_coloring_comment_bold=false
-semanticHighlighting.method.italic=false
-semanticHighlighting.field.underline=false
-AbstractTextEditor.Color.Background.SystemDefault=false
-semanticHighlighting.abstractMethodInvocation.bold=false
-semanticHighlighting.annotationElementReference.bold=false
-semanticHighlighting.localVariableDeclaration.underline=false
-semanticHighlighting.typeArgument.strikethrough=false
-semanticHighlighting.annotation.bold=false
-java_bracket_strikethrough=false
-semanticHighlighting.deprecatedMember.color=210,168,161
-java_type=155,112,63
-java_type_bold=false
-semanticHighlighting.abstractMethodInvocation.underline=false
-java_doc_link=248,248,248
-java_annotation_underline=false
-semanticHighlighting.typeParameter.strikethrough=false
-semanticHighlighting.annotation.color=249,238,152
-pf_coloring_value=143,157,106
-semanticHighlighting.typeArgument.enabled=true
-semanticHighlighting.abstractMethodInvocation.color=248,248,248
-semanticHighlighting.interface.italic=false
-pf_coloring_comment_italic=true
-semanticHighlighting.parameterVariable.italic=false
-java_multi_line_comment_underline=false
-semanticHighlighting.localVariableDeclaration.bold=false
-java_doc_default_underline=false
-pf_coloring_value_italic=false
-java_doc_default_bold=false
-java_single_line_comment_italic=true
-java_doc_keyword_underline=false
-java_doc_link_underline=true
-semanticHighlighting.staticMethodInvocation.strikethrough=false
-pf_coloring_argument_bold=false
-semanticHighlighting.staticField.color=207,106,76
-semanticHighlighting.annotation.italic=false
-java_multi_line_comment_italic=true
-semanticHighlighting.deprecatedMember.bold=false
-java_keyword_return_italic=false
-semanticHighlighting.typeParameter.bold=false
-java_annotation_italic=false
-semanticHighlighting.abstractMethodInvocation.italic=false
-semanticHighlighting.autoboxing.color=248,248,248
-semanticHighlighting.autoboxing.italic=false
-pf_coloring_assignment_underline=false
-semanticHighlighting.typeParameter.enabled=true
-java_string_strikethrough=false
-matchingBracketsColor=94,94,94
-semanticHighlighting.staticFinalField.color=207,106,76
-semanticHighlighting.annotationElementReference.underline=false
-semanticHighlighting.abstractMethodInvocation.enabled=true
-semanticHighlighting.interface.strikethrough=false
-semanticHighlighting.enum.underline=false
-semanticHighlighting.localVariableDeclaration.strikethrough=false
-semanticHighlighting.inheritedMethodInvocation.underline=false
-semanticHighlighting.localVariable.color=248,248,248
-java_string_italic=false
-semanticHighlighting.annotationElementReference.enabled=true
-semanticHighlighting.methodDeclarationName.bold=false
-java_single_line_comment_underline=false
-semanticHighlighting.inheritedMethodInvocation.enabled=true
-semanticHighlighting.autoboxing.underline=false
-AbstractTextEditor.Color.SelectionForeground=248,248,248
-semanticHighlighting.number.bold=false
-semanticHighlighting.staticMethodInvocation.underline=false
-java_operator_bold=false
-java_multi_line_comment=95,90,96
-semanticHighlighting.annotation.strikethrough=false
-semanticHighlighting.parameterVariable.color=117,135,166
-semanticHighlighting.localVariable.italic=false
-pf_coloring_value_underline=false
-pf_coloring_comment=95,90,96
-semanticHighlighting.interface.underline=false
-semanticHighlighting.staticField.italic=false
-semanticHighlighting.localVariableDeclaration.italic=false
-pf_coloring_assignment_italic=false
-semanticHighlighting.parameterVariable.bold=false
-semanticHighlighting.deprecatedMember.underline=true
-semanticHighlighting.localVariable.strikethrough=false
-pf_coloring_value_bold=false
-semanticHighlighting.annotationElementReference.strikethrough=false
-java_keyword=205,168,105
-java_single_line_comment=95,90,96
-semanticHighlighting.localVariable.enabled=true
-semanticHighlighting.annotationElementReference.italic=false
-pf_coloring_assignment_strikethrough=false
-semanticHighlighting.enum.color=155,112,63
-semanticHighlighting.enum.bold=false
-semanticHighlighting.field.strikethrough=false
-semanticHighlighting.methodDeclarationName.strikethrough=false
-semanticHighlighting.staticFinalField.underline=false
-eclipse.preferences.version=1
-java_doc_keyword=205,168,105
-java_doc_tag_bold=false
-semanticHighlighting.staticField.underline=false
-semanticHighlighting.localVariableDeclaration.color=248,248,248
-java_operator_underline=false
-java_bracket=248,248,248
-semanticHighlighting.class.enabled=true
-java_single_line_comment_bold=false
-java_annotation_bold=false
-java_bracket_underline=false
-semanticHighlighting.class.strikethrough=false
-java_doc_keyword_italic=false
-semanticHighlighting.deprecatedMember.strikethrough=false
-semanticHighlighting.class.italic=false
-semanticHighlighting.annotation.enabled=true
-java_doc_keyword_strikethrough=false
-semanticHighlighting.localVariable.bold=false
-semanticHighlighting.staticField.strikethrough=false
-java_bracket_bold=false
-pf_coloring_key_strikethrough=false
-semanticHighlighting.autoboxing.bold=false
-semanticHighlighting.methodDeclarationName.color=155,112,63
-semanticHighlighting.staticFinalField.enabled=true
-pf_coloring_key_bold=false
-pf_coloring_value_strikethrough=false
-java_keyword_italic=false
-java_operator=205,168,105
-semanticHighlighting.localVariable.underline=false
-java_default=248,248,248
-semanticHighlighting.enum.italic=false
-semanticHighlighting.number.italic=false
-java_single_line_comment_strikethrough=false
-java_keyword_return_strikethrough=false
-semanticHighlighting.autoboxing.enabled=true
-semanticHighlighting.staticMethodInvocation.bold=false
-semanticHighlighting.typeParameter.underline=false
-java_doc_default=95,90,96
-semanticHighlighting.number.enabled=true
-semanticHighlighting.field.color=248,248,248
-java_doc_link_strikethrough=false
-semanticHighlighting.number.color=207,106,76
-AbstractTextEditor.Color.Foreground=248,248,248
-semanticHighlighting.methodDeclarationName.underline=false
-java_string_underline=false
-semanticHighlighting.staticFinalField.italic=false
-semanticHighlighting.enum.strikethrough=false
-java_multi_line_comment_strikethrough=false
-semanticHighlighting.typeArgument.color=248,248,248
-semanticHighlighting.typeArgument.italic=false
-semanticHighlighting.methodDeclarationName.italic=false
-pf_coloring_argument_strikethrough=false
View
65 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.pde.ui.prefs
@@ -1,65 +0,0 @@
-#Sat Jul 16 17:57:21 CEST 2011
-editor.color.instr_strikethrough=false
-editor.color.string_strikethrough=false
-editor.color.header_assignment=248,248,248
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
-editor.color.header_key_italic=false
-editor.color.default_bold=false
-editor.color.header_value_underline=false
-editor.color.default_underline=false
-editor.color.xml_comment_underline=false
-editor.color.header_assignment_underline=false
-editor.color.header_value=248,248,248
-editor.color.tag=155,112,63
-editor.color.default_italic=false
-editor.color.header_value_strikethrough=false
-editor.color.header_osgi_bold=false
-editor.color.header_key=205,168,105
-editor.color.header_attributes_bold=false
-AbstractTextEditor.Color.Foreground=248,248,248
-editor.color.xml_comment_bold=false
-editor.color.header_attributes_italic=false
-editor.color.header_osgi_strikethrough=false
-AbstractTextEditor.Color.Background=20,20,20
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-editor.color.instr_bold=false
-editor.color.string_bold=false
-editor.color.xml_comment_italic=true
-editor.color.header_attributes=143,157,106
-editor.color.string=143,157,106
-editor.color.header_value_bold=false
-editor.color.header_key_bold=false
-editor.color.externalized_string_bold=false
-editor.color.xml_comment_strikethrough=false
-editor.color.header_osgi_italic=false
-editor.color.header_assignment_italic=false
-editor.color.tag_bold=false
-editor.color.header_assignment_bold=false
-currentLineColor=27,27,27
-editor.color.externalized_string_underline=false
-AbstractTextEditor.Color.Background.SystemDefault=false
-editor.color.instr=73,73,73
-editor.color.header_osgi_underline=false
-editor.color.header_attributes_strikethrough=false
-editor.color.tag_italic=false
-editor.color.default=248,248,248
-editor.color.header_assignment_strikethrough=false
-eclipse.preferences.version=1
-editor.color.default_strikethrough=false
-editor.color.instr_italic=false
-editor.color.tag_underline=false
-editor.color.externalized_string=143,157,106
-editor.color.header_key_underline=false
-editor.color.instr_underline=false
-AbstractTextEditor.Color.SelectionForeground=248,248,248
-editor.color.tag_strikethrough=false
-editor.color.xml_comment=95,90,96
-editor.color.header_attributes_underline=false
-editor.color.header_key_strikethrough=false
-editor.color.header_osgi=205,168,105
-AbstractTextEditor.Color.SelectionBackground=60,64,67
-editor.color.header_value_italic=false
-editor.color.externalized_string_italic=false
-editor.color.externalized_string_strikethrough=false
-editor.color.string_underline=false
-editor.color.string_italic=false
View
3 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.search.prefs
@@ -1,3 +0,0 @@
-#Sat Jul 16 17:57:19 CEST 2011
-org.eclipse.search.potentialMatch.fgColor=94,101,105
-eclipse.preferences.version=1
View
3 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.team.ui.prefs
@@ -1,3 +0,0 @@
-#Sat Jul 16 17:57:35 CEST 2011
-eclipse.preferences.version=1
-org.eclipse.team.ui.first_time=false
View
32 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.editors.prefs
@@ -1,32 +0,0 @@
-#Sat Jul 16 17:57:21 CEST 2011
-secondaryIPColor=14,34,49
-htmlTagPairOccurrenceIndicationHighlighting=false
-AbstractTextEditor.Color.Background=20,20,20
-xmlTagPairOccurrenceIndicationColor=94,94,94
-rubyBlockPairOccurrenceIndication=true
-eclipse.preferences.version=1
-pydevOccurrenceIndicationTextStyle=BOX
-pydevOccurrenceIndication=true
-writeOccurrenceIndicationColor=60,64,67
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-AbstractTextEditor.Color.Foreground=248,248,248
-AbstractTextEditor.Color.SelectionBackground=60,64,67
-currentIPColor=14,34,49
-rubyBlockPairOccurrenceIndicationColor=94,94,94
-htmlTagPairOccurrenceIndication=true
-htmlTagPairOccurrenceIndicationTextStyle=BOX
-rubyBlockPairOccurrenceIndicationHighlighting=false
-xmlTagPairOccurrenceIndicationTextStyle=BOX
-xmlTagPairOccurrenceIndicationHighlighting=false
-currentLineColor=27,27,27
-searchResultIndicationColor=94,101,105
-AbstractTextEditor.Color.SelectionForeground=248,248,248
-pydevOccurrenceHighlighting=false
-rubyBlockPairOccurrenceIndicationTextStyle=BOX
-xmlTagPairOccurrenceIndication=true
-pydevOccurrenceIndicationColor=94,94,94
-AbstractTextEditor.Color.Background.SystemDefault=false
-occurrenceIndicationColor=60,64,67
-AbstractTextEditor.Color.SelectionBackground.SystemDefault=false
-htmlTagPairOccurrenceIndicationColor=94,94,94
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
View
7 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs
@@ -1,7 +0,0 @@
-#Sat Jul 16 17:57:35 CEST 2011
-eclipse.preferences.version=1
-tipsAndTricks=true
-platformState=1304851926775
-SHOW_PERSPECTIVEBAR=true
-quickStart=false
-SHOW_COOLBAR=true
View
10 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.texteditor.prefs
@@ -1,10 +0,0 @@
-#Sat Jul 16 17:57:20 CEST 2011
-AbstractTextEditor.Color.Background.SystemDefault=false
-AbstractTextEditor.Color.Foreground.SystemDefault=false
-AbstractTextEditor.Color.Foreground=248,248,248
-currentLineColor=27,27,27
-AbstractTextEditor.Color.SelectionBackground=60,64,67
-AbstractTextEditor.Color.SelectionForeground.SystemDefault=false
-AbstractTextEditor.Color.Background=20,20,20
-eclipse.preferences.version=1
-AbstractTextEditor.Color.SelectionForeground=248,248,248
View
22 .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.workbench.prefs
@@ -1,22 +0,0 @@
-#Sat Jul 16 17:57:35 CEST 2011
-com.vectrace.mercurialeclipse.ui.colorsandfonts.removedBackgroundColor=66,14,9
-com.vectrace.mercurialeclipse.ui.colorsandfonts.conflictForegroundColor=248,248,248
-com.vectrace.mercurialeclipse.ui.colorsandfonts.deletedBackgroundColor=66,14,9
-HYPERLINK_COLOR=84,143,160
-ACTIVE_HYPERLINK_COLOR=84,143,160
-hyperlinkColor=84,143,160
-com.vectrace.mercurialeclipse.ui.colorsandfonts.unknownForegroundColor=248,248,248
-eclipse.preferences.version=1
-com.vectrace.mercurialeclipse.ui.colorsandfonts.IgnoredBackgroundColor=20,20,20
-hyperlinkColor.SystemDefault=false
-org.eclipse.egit.ui.UncommittedChangeBackgroundColor=37,59,34
-com.vectrace.mercurialeclipse.ui.colorsandfonts.addedBackgroundColor=37,59,34
-com.vectrace.mercurialeclipse.ui.colorsandfonts.removedForegroundColor=248,248,248
-com.vectrace.mercurialeclipse.ui.colorsandfonts.deletedForegroundColor=248,248,248
-com.vectrace.mercurialeclipse.ui.colorsandfonts.conflictBackgroundColor=20,20,20
-com.vectrace.mercurialeclipse.ui.colorsandfonts.IgnoredForegroundColor=248,248,248
-org.eclipse.egit.ui.UncommittedChangeForegroundColor=248,248,248
-com.vectrace.mercurialeclipse.ui.colorsandfonts.changedForegroundColor=248,248,248
-com.vectrace.mercurialeclipse.ui.colorsandfonts.addedForegroundColor=248,248,248
-com.vectrace.mercurialeclipse.ui.colorsandfonts.unknownBackgroundColor=20,20,20
-com.vectrace.mercurialeclipse.ui.colorsandfonts.changedBackgroundColor=74,65,13
View
24 .metadata/.plugins/org.eclipse.ui.ide/dialog_settings.xml
@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<section name="Workbench">
- <list key="installedFeatures">
- <item value="AnyEditTools:2.4.0.201101292156"/>
- <item value="com.aptana.feature.rcp:3.0.2.201106082310-7k7aDSFFtFz01NdM66a-N0FIXbhT"/>
- <item value="com.aptana.feature.studio:3.0.2.201106082253-7E137HFCPGfKLHU7RUIsH_4F1jOz"/>
- <item value="com.aptana.feature:3.0.2.1307597048-BD7D6BPz-UZ2FiFPM1DC34EUkMC7"/>
- <item value="com.aptana.php.feature:3.0.0.1306264003-7D--7CE5NBNH55E"/>
- <item value="org.eclipse.help:1.2.1.r362_v20101111-7e7jEVFDr6xg-LSlC_z0w1D"/>
- <item value="org.eclipse.platform:3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi"/>
- <item value="org.eclipse.rcp:3.6.2.r362_v20101104-9SAxFMKFkSAqi8axkv1ZjegmiBLY"/>
- <item value="org.python.pydev.django_templates.feature:2.1.1.2011060214"/>
- <item value="org.python.pydev.feature:2.1.1.2011060214"/>
- <item value="org.radrails.rails:3.0.0.201106082244-7b-7O7c-Qbf6DWUz"/>
- </list>
- <section name="ChooseWorkspaceDialogSettings">
- <item value="243" key="DIALOG_Y_ORIGIN"/>
- <item value="290" key="DIALOG_X_ORIGIN"/>
- </section>
- <section name="WORKBENCH_SETTINGS">
- <list key="ENABLED_TRANSFERS">
- </list>
- </section>
-</section>
View
3 .metadata/.plugins/org.eclipse.ui.workbench/dialog_settings.xml
@@ -1,3 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<section name="Workbench">
-</section>
View
161 .metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
@@ -1,161 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<workbench progressCount="21" version="2.0">
-<workbenchAdvisor/>
-<window height="860" width="1200" x="125" y="0">
-<fastViewData fastViewLocation="1024"/>
-<perspectiveBar>
-<itemSize x="160"/>
-</perspectiveBar>
-<coolbarLayout locked="0">
-<coolItem id="group.file" itemType="typeGroupMarker"/>
-<coolItem id="org.eclipse.ui.workbench.file" itemType="typeToolBarContribution" x="122" y="22"/>
-<coolItem id="additions" itemType="typeGroupMarker"/>
-<coolItem id="com.aptana.ui.globalActionSet" itemType="typeToolBarContribution" x="107" y="22"/>
-<coolItem id="org.eclipse.debug.ui.launchActionSet" itemType="typeToolBarContribution" x="137" y="22"/>
-<coolItem id="org.eclipse.search.searchActionSet" itemType="typeToolBarContribution" x="76" y="22"/>
-<coolItem id="org.eclipse.ui.edit.text.actionSet.presentation" itemType="typeToolBarContribution" x="84" y="22"/>
-<coolItem id="group.nav" itemType="typeGroupMarker"/>
-<coolItem id="org.eclipse.ui.workbench.navigate" itemType="typeToolBarContribution" x="91" y="22"/>
-<coolItem id="group.editor" itemType="typeGroupMarker"/>
-<coolItem id="group.help" itemType="typeGroupMarker"/>
-<coolItem id="org.eclipse.ui.workbench.help" itemType="typeToolBarContribution" x="-1" y="-1"/>
-</coolbarLayout>
-<page focus="true" label="Workspace - Web">
-<editors>
-<editorArea activeWorkbook="DefaultEditorWorkbook">
-<info part="DefaultEditorWorkbook">
-<folder appearance="1" expanded="2">
-<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory"/>
-</folder>
-</info>
-</editorArea>
-</editors>
-<views>
-<view id="org.eclipse.ui.navigator.ProjectExplorer" partName="Project Explorer"/>
-<view id="com.aptana.terminal.views.terminal" partName="Terminal"/>
-<view id="com.aptana.samples.ui.SamplesView" partName="Samples"/>
-<view id="org.eclipse.ui.views.ProblemView" partName="Problems"/>
-<view id="org.eclipse.ui.console.ConsoleView" partName="Console">
-<viewState/>
-</view>
-<view id="com.aptana.explorer.view" partName="App Explorer">
-<viewState CommonNavigator.LINKING_ENABLED="0" GitChangedFilesFilterEnabled=""/>
-</view>
-<view id="org.eclipse.ui.views.ContentOutline" partName="Outline">
-<viewState/>
-</view>
-</views>
-<perspectives activePart="com.aptana.explorer.view" activePerspective="com.aptana.ui.WebPerspective">
-<perspective editorAreaTrimState="2" editorAreaVisible="1" fixed="0" version="0.016">
-<descriptor class="com.aptana.ui.internal.WebPerspectiveFactory" id="com.aptana.ui.WebPerspective" label="Web"/>
-<alwaysOnActionSet id="org.eclipse.ui.cheatsheets.actionSet"/>
-<alwaysOnActionSet id="org.eclipse.search.searchActionSet"/>
-<alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.convertLineDelimitersTo"/>
-<alwaysOnActionSet id="org.eclipse.ui.actionSet.keyBindings"/>
-<alwaysOnActionSet id="org.eclipse.ui.actionSet.openFiles"/>
-<alwaysOnActionSet id="AnyEdit.actionSet"/>
-<alwaysOnActionSet id="com.aptana.browser.actionSet"/>
-<alwaysOnActionSet id="com.aptana.ruby.debug.ui.RubyDebugActionSet"/>
-<alwaysOnActionSet id="com.aptana.editor.php.presentation"/>
-<alwaysOnActionSet id="org.eclipse.debug.ui.launchActionSet"/>
-<alwaysOnActionSet id="org.eclipse.debug.ui.breakpointActionSet"/>
-<alwaysOnActionSet id="com.aptana.js.debug.ui.actionSet"/>
-<alwaysOnActionSet id="org.eclipse.ui.NavigateActionSet"/>
-<alwaysOnActionSet id="org.eclipse.ui.edit.text.actionSet.presentation"/>
-<alwaysOnActionSet id="com.aptana.ui.globalActionSet"/>
-<alwaysOnActionSet id="com.aptana.terminal.actionSet"/>
-<show_view_action id="com.aptana.browser.views.webbrowser"/>
-<show_view_action id="com.aptana.explorer.view"/>
-<show_view_action id="com.aptana.ui.io.remoteview"/>
-<show_view_action id="org.eclipse.ui.views.ContentOutline"/>
-<show_view_action id="com.aptana.samples.ui.SamplesView"/>
-<show_view_action id="com.aptana.terminal.views.terminal"/>
-<show_view_action id="org.eclipse.ui.console.ConsoleView"/>
-<show_view_action id="org.eclipse.pde.runtime.LogView"/>
-<show_view_action id="org.eclipse.ui.views.ProblemView"/>
-<show_view_action id="org.eclipse.ui.views.TaskList"/>
-<new_wizard_action id="com.aptana.editor.php.NewPHPProjectWizard"/>
-<new_wizard_action id="com.aptana.ui.wizards.NewWebProject"/>
-<new_wizard_action id="com.aptana.ruby.core.ui.rubyProjectWizard"/>
-<new_wizard_action id="com.aptana.ui.wizards.new.file"/>
-<new_wizard_action id="org.eclipse.ui.wizards.new.folder"/>
-<new_wizard_action id="org.eclipse.ui.editors.wizards.UntitledTextFileWizard"/>
-<new_wizard_action id="org.radrails.rails.ui.projectWizard"/>
-<perspective_action id="org.eclipse.debug.ui.DebugPerspective"/>
-<hide_toolbar_item_id id="org.eclipse.ui.edit.text.toggleShowSelectedElementOnly"/>
-<view id="com.aptana.explorer.view"/>
-<view id="org.eclipse.ui.navigator.ProjectExplorer"/>
-<view id="org.eclipse.ui.console.ConsoleView"/>
-<view id="com.aptana.terminal.views.terminal"/>
-<view id="org.eclipse.ui.views.ProblemView"/>
-<view id="org.eclipse.ui.views.ContentOutline"/>
-<view id="com.aptana.samples.ui.SamplesView"/>
-<fastViewBars/>
-<layout>
-<mainWindow>
-<info folder="true" part="left">
-<folder activePageID="com.aptana.explorer.view" appearance="2" expanded="2">
-<page content="com.aptana.explorer.view" label="App Explorer"/>
-<page content="org.eclipse.ui.navigator.ProjectExplorer" label="Project Explorer"/>
-<page content="com.aptana.ui.io.remoteview" label="LabelNotFound"/>
-<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
-<part id="0"/>
-<part id="1"/>
-</presentation>
-</folder>
-</info>
-<info folder="true" part="stickyFolderRight" ratio="0.75" ratioLeft="882" ratioRight="294" relationship="2" relative="left">
-<folder appearance="2" expanded="2">
-<page content="org.eclipse.help.ui.HelpView" label="LabelNotFound"/>
-<page content="org.eclipse.ui.internal.introview" label="LabelNotFound"/>
-<page content="org.eclipse.ui.cheatsheets.views.CheatSheetView" label="LabelNotFound"/>
-</folder>
-</info>
-<info part="org.eclipse.ui.editorss" ratio="0.19982994" ratioLeft="235" ratioRight="941" relationship="2" relative="left"/>
-<info folder="true" part="terminalArea" ratio="0.75" ratioLeft="576" ratioRight="192" relationship="4" relative="org.eclipse.ui.editorss">
-<folder activePageID="org.eclipse.ui.console.ConsoleView" appearance="2" expanded="2">
-<page content="org.eclipse.ui.console.ConsoleView" label="Console"/>
-<page content="com.aptana.terminal.views.terminal" label="Terminal"/>
-<page content="org.eclipse.ui.views.ProblemView" label="Problems"/>
-<page content="org.eclipse.pde.runtime.LogView" label="LabelNotFound"/>
-<page content="org.eclipse.ui.views.TaskList" label="LabelNotFound"/>
-<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
-<part id="0"/>
-<part id="1"/>
-<part id="2"/>
-</presentation>
-</folder>
-</info>
-<info folder="true" part="org.eclipse.ui.internal.ViewStack@16a8823" ratio="0.75" ratioLeft="576" ratioRight="192" relationship="4" relative="left">
-<folder activePageID="org.eclipse.ui.views.ContentOutline" appearance="2" expanded="2">
-<page content="org.eclipse.ui.views.ContentOutline" label="Outline"/>
-<page content="com.aptana.samples.ui.SamplesView" label="Samples"/>
-<presentation id="org.eclipse.ui.presentations.WorkbenchPresentationFactory">
-<part id="0"/>
-<part id="1"/>
-</presentation>
-</folder>
-</info>
-</mainWindow>
-</layout>
-</perspective>
-</perspectives>
-<workingSets/>
-<navigationHistory/>
-<input factoryID="org.eclipse.ui.internal.model.ResourceFactory" path="/" type="8"/>
-</page>
-<workbenchWindowAdvisor/>
-<actionBarAdvisor/>
-<trimLayout>
-<trimArea IMemento.internal.id="128">
-<trimItem IMemento.internal.id="org.eclipse.ui.internal.WorkbenchWindow.topBar"/>
-</trimArea>
-<trimArea IMemento.internal.id="1024">
-<trimItem IMemento.internal.id="org.eclise.ui.internal.FastViewBar"/>
-<trimItem IMemento.internal.id="org.eclipse.jface.action.StatusLineManager"/>
-<trimItem IMemento.internal.id="org.eclipse.ui.internal.progress.ProgressRegion"/>
-</trimArea>
-</trimLayout>
-</window>
-<mruList/>
-</workbench>
View
0 .metadata/.plugins/org.python.pydev/ping.log
No changes.
View
1 .metadata/version.ini
@@ -1 +0,0 @@
-org.eclipse.core.runtime=1
View
11 .project
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Hydra.js_master</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ </buildSpec>
+ <natures>
+ </natures>
+</projectDescription>
View
18 README.md
@@ -16,21 +16,21 @@ Hydra has been designed to create your application in a modular design system.
* If you have a module that is working well you can extend it to change his behavior without losing is original behavior.
* Can be used in url threaded application as in a ajax threaded application.
* You can test your modules with any Unit Testing Framework.
-* Only 1.1kb when Gzipped.
+* Only 3.4kb when [Gzipped](versions/hydra.min.gzipped.js).
-(Links will only work if you clone the repo)
+(Links will only work if you clone the repo.)
-[API documentation](https://github.com/tcorral/Hydra.js/examples_and_documents/jsdoc/index.html)
+[API documentation](examples_and_documents/jsdoc/index.html)
-[Examples](https://github.com/tcorral/Hydra.js/examples_and_documents/index.html) to see for yourself!
+[Examples](examples_and_documents/index.html) to see for yourself!
## Usage
### Before using it:
Insert in your code:
<script type="text/javascript" src="/path/to/your/js/libs/Hydra.js"></script>
-
+
### Create a module
Hydra.module.register('moduleId', function(action)
{
@@ -95,7 +95,7 @@ To use the action manager you have accessible using "action".
destroy: function () {}
};
});
-
+
*Tip: If you have several actions to listen I recommend to make use of an object where the keys must be the names of the actions.*
Hydra.module.register('moduleId', function(action)
@@ -173,11 +173,11 @@ The notify method needs a Notifier object:
## Documentation
-(Links will only work if you clone the repo)
+(Links will only work if you clone the repo.)
-[API documentation](https://github.com/tcorral/Hydra.js/examples_and_documents/jsdoc/index.html)
+[API documentation](examples_and_documents/jsdoc/index.html)
-[Examples](https://github.com/tcorral/Hydra.js/examples_and_documents/index.html) to see for yourself!
+[Examples](examples_and_documents/index.html) to see for yourself!
## License
View
11 examples_and_documents/index.html
@@ -6,19 +6,22 @@
<h2>API</h2>
<ol>
<li>
- <a href='apiDoc.html'>View JSDoc HTML generated</a>
+ <a href='jsdoc/index.html'>View JSDoc HTML generated</a>
</li>
</ol>
<h2>Examples</h2>
<ol>
<li>
- <a href='singleModule.html'>Single Module</a>
+ <a href='singleModule.html'>Single module</a>
</li>
<li>
- <a href='twoModules.html'>Two Modules</a>
+ <a href='twoModules.html'>Two modules</a>
</li>
<li>
- <a href='singleModuleWithListener.html'>Single Module</a>
+ <a href='singleModuleWithListener.html'>Single module listening.</a>
+ </li>
+ <li>
+ <a href='twoModulesOneListenOtherNotify.html'>Two modules: One listening, other notifying.</a>
</li>
</ol>
</body>
View
2 jsTestDriver.conf
@@ -1,6 +1,6 @@
server: http://localhost:4424
load:
- - libs/*.js
+ - ../../libs/*.js
- src/*.js
- test/*.js
View
502 versions/hydra.developer.js
@@ -0,0 +1,502 @@
+(function (win, doc) {
+ 'use strict';
+ /**
+ * oModules is an object where the modules will be saved.
+ * Empty object declared by default.
+ * @private
+ * @author Tomás Corral Casas
+ * @version 1.0
+ * @type Object
+ */
+ var oModules = {},
+ /**
+ * Hydra is the private declaration of the Hydra object.
+ * Hydra is declared null by default.
+ * @private
+ * @type Hydra
+ */
+ Hydra = null,
+ /**
+ * bDebug is a flag to wrap the module methods to avoid cascade failing.
+ * true: The code will fail.
+ * false: The code will log errors.
+ * @private
+ * @type Boolean
+ */
+ bDebug = false,
+ /**
+ * ErrorHandler is the class that will handle the errors on your code.
+ * Can be changed using setErrorHandler method.
+ * Default ErrorHandler will log messages in console if exist.
+ * If console doesn't exist the error will be logged in a hidden layer.
+ * @private
+ * @class ErrorHandler
+ * @constructor
+ */
+ ErrorHandler = function () {},
+ /**
+ * Module is the class that will manage the module system.
+ * @private
+ * @class Module
+ * @constructor
+ */
+ Module = function () {},
+ /**
+ * Action is the class that will manage the action listeners and notifications.
+ * @private
+ * @class Action
+ * @constructor
+ */
+ Action = function () {};
+
+ /**
+ * isFunction is a method to know if the object passed as parameter is a Function object.
+ * @private
+ * @param {Object} fpCallback
+ * @return Boolean
+ */
+ function isFunction(fpCallback) {
+ return Object.prototype.toString.call(fpCallback) === "[object Function]";
+ }
+ /**
+ * getAction is a method to gain access to the private Action constructor.
+ * @private
+ * @return Action class
+ */
+ function getAction() {
+ return Action;
+ }
+ /**
+ * getErrorHandler is a method to gain access to the private ErrorHandler constructor.
+ * @private
+ * @return ErrorHandler class
+ */
+ function getErrorHandler() {
+ return ErrorHandler;
+ }
+ /**
+ * setErrorHandler is a method to set the ErrorHandler to a new object to add more logging logic.
+ * @private
+ * @param {Object} oErrorHandler
+ */
+ function setErrorHandler(oErrorHandler) {
+ ErrorHandler = oErrorHandler;
+ }
+ /**
+ * setDebug is a method to set the bDebug flag.
+ * @private
+ * @param {Boolean} _bDebug
+ */
+ function setDebug(_bDebug){
+ bDebug = _bDebug;
+ }
+ /**
+ * wrapMethod is a method to wrap the original method to avoid failing code.
+ * This will be only called if bDebug flag is setted to false.
+ * @private
+ * @param {Object} oInstance
+ * @param {String} sName
+ * @param {String} sModuleId
+ * @param {Function} fpMethod
+ */
+ function wrapMethod(oInstance, sName, sModuleId, fpMethod) {
+ oInstance[sName] = (function (sName, fpMethod) {
+ return function () {
+ var aArgs = Array.prototype.slice.call(arguments, 0);
+ try {
+ return fpMethod.apply(this, aArgs);
+ } catch (erError) {
+ ErrorHandler.log(sModuleId, sName, erError);
+ } finally {
+ aArgs = null;
+ }
+ };
+ }(sName, fpMethod));
+ }
+ /**
+ * createInstance is the method that will create the module instance and wrap the method if needed.
+ * @private
+ * @param {String} sModuleId
+ * @return {Object} Module instance
+ */
+ function createInstance(sModuleId) {
+ if(typeof oModules[sModuleId] === "undefined"){
+ throw new Error("The module is not registered!");
+ }
+ var oInstance = oModules[sModuleId].creator(new Action()),
+ sName = '',
+ fpMethod = function () {};
+
+ if (!bDebug) {
+ for (sName in oInstance) {
+ if (oInstance.hasOwnProperty(sName)) {
+ fpMethod = oInstance[sName];
+ if (!isFunction(fpMethod)) {
+ continue;
+ }
+ wrapMethod(oInstance, sName, sModuleId, fpMethod);
+ }
+ }
+ }
+ return oInstance;
+ }
+ /**
+ * type is a property to be able to know the class type.
+ * @member ErrorHandler
+ * @static
+ * @type String
+ */
+ ErrorHandler.type = 'ErrorHandler';
+ /**
+ * list is a property that will store the DOM object list reference.
+ * Null by default.
+ * @member ErrorHandler
+ * @static
+ * @type DOM
+ */
+ ErrorHandler.list = null;
+ /**
+ * create_dom is the method that will create the hidden layer to log the errors
+ * on system without console.
+ * @member ErrorHandler
+ * @static
+ */
+ ErrorHandler.create_dom = function () {
+ var oLayer = doc.createElement("div"),
+ oList = doc.createElement("ul"),
+ oLayerStyle = oLayer.style;
+ oLayerStyle.display = 'none';
+ oLayerStyle.position = "fixed";
+ oLayerStyle.height = "100px";
+ oLayerStyle.width = "100%";
+ oLayerStyle.bottom = "0px";
+ this.list = oList;
+ oLayer.appendChild(oList);
+ doc.body.appendChild(oLayer);
+ oLayer = oList = oLayerStyle = null;
+ };
+ /**
+ * addItem is the method that will add a new item to the list to log the errors
+ * on system without console.
+ * @member ErrorHandler
+ * @static
+ * @param {String} sModuleId
+ * @param {String} sMethod
+ * @param {Error} erError
+ */
+ ErrorHandler.addItem = function (sModuleId, sMethod, erError) {
+ var oItem = doc.createElement("li");
+ oItem.appendChild(doc.createTextNode(sModuleId + "/" + sMethod + ": " + erError.message));
+ this.list.appendChild(oItem);
+ oItem = null;
+ };
+ /**
+ * log is the method that will differenciate the system if they had console or not.
+ * if window.console exist console.log will be called
+ * if window.console not exist then the log on layer will be activated.
+ * Lazy pattern will be used to avoid extra work on next calls.
+ * Arguments are sent to the methods that will be applied.
+ * @static
+ */
+ ErrorHandler.log = function () {
+ var aArgs = Array.prototype.slice.call(arguments, 0);
+
+ if (typeof window.console === "undefined" || (typeof aArgs[aArgs.length - 1] == 'boolean' && !aArgs[aArgs.length - 1])) {
+ if (this.list === null) {
+ this.create_dom();
+ }
+ this.addItem.apply(this, aArgs);
+ ErrorHandler.__old_log__ = ErrorHandler.log;
+ this.log = function () {
+ var aArgs = Array.prototype.slice.call(arguments, 0);
+ this.addItem.apply(this, aArgs);
+ aArgs = null;
+ };
+ } else {
+ win.console.log.apply(win.console, aArgs);
+ ErrorHandler.__old_log__ = ErrorHandler.log;
+ this.log = function () {
+ var aArgs = Array.prototype.slice.call(arguments, 0);
+ win.console.log.apply(win.console, aArgs);
+ aArgs = null;
+ };
+ }
+ aArgs = null;
+ };
+ /**
+ * type is a property to be able to know the class type.
+ * @member Module.prototype
+ * @type String
+ */
+ Module.prototype.type = "Module";
+ /**
+ * register is the method that will add the new module to the oModules object.
+ * sModuleId will be the key where it will be stored.
+ * @member Module.prototype
+ * @param {String} sModuleId
+ * @param {Function} fpCreator
+ */
+ Module.prototype.register = function (sModuleId, fpCreator) {
+ oModules[sModuleId] = {
+ creator: fpCreator,
+ instance: null
+ };
+ };
+ /**
+ * merge is a method to merge two modules in a new one.
+ * This must be called only from the extend public method.
+ * @member Module.prototype
+ * @private
+ * @param {Object} oModuleBase
+ * @param {Object} oModuleExtended
+ * @return {Object} the merged module
+ */
+ Module.prototype.merge = function (oModuleBase, oModuleExtended) {
+ var oFinalModule = {},
+ sKey = '';
+
+ for (sKey in oModuleBase) {
+ if (oModuleBase.hasOwnProperty(sKey)) {
+ oFinalModule[sKey] = oModuleBase[sKey];
+ }
+ }
+
+ for (sKey in oModuleExtended) {
+ if (oModuleExtended.hasOwnProperty(sKey)) {
+ oFinalModule[sKey] = oModuleExtended[sKey];
+ }
+ }
+ return oFinalModule;
+ };
+ /**
+ * extend is the method that will be used to extend a module with new features.
+ * can be used to remove some features too, withou touching the original code.
+ * @member Module.prototype
+ * @param {String} sModuleId
+ * @param {Function} fpCreator
+ */
+ Module.prototype.extend = function (sModuleId, fpCreator) {
+ var oModule = oModules[sModuleId],
+ self = this,
+ oBaseModule = null,
+ oExtendedModule = null,
+ oFinalModule = null;
+
+ if (typeof oModule === "undefined") {
+ return;
+ }
+
+ oExtendedModule = fpCreator(new Action());
+ oBaseModule = oModule.creator(new Action());
+ oFinalModule = this.merge(oBaseModule, oExtendedModule),
+
+ oModules[sModuleId] = {
+ creator: function (oAction) {
+ return oFinalModule;
+ },
+ instance: null
+ };
+
+ oModule = oBaseModule = oExtendedModule = null;
+ };
+ /**
+ * test is a method that will return the module without wrapping their methods.
+ * It's called test because it was created to be able to test the modules with unit testing.
+ * @member Module.prototype
+ * @param {String} sModuleId
+ * @param {Function} fpCallback
+ */
+ Module.prototype.test = function (sModuleId, fpCallback) {
+ bDebug = true;
+ fpCallback(createInstance(sModuleId));
+ bDebug = false;
+ };
+ /**
+ * start is the method that will initialize the module.
+ * When start is called the module instance will be created and the init method is called.
+ * @member Module.prototype
+ * @param {String} sModuleId
+ * @param {Object} oData
+ */
+ Module.prototype.start = function (sModuleId, oData) {
+ var oModule = oModules[sModuleId];
+ if (typeof oModule !== "undefined")
+ {
+ oModule.instance = createInstance(sModuleId);
+ oModule.instance.init(oData);
+ }
+ oModule = null;
+ };
+ /**
+ * startAll is the method that will initialize all the registered modules.
+ * @member Module.prototype
+ */
+ Module.prototype.startAll = function () {
+ var sModuleId = '';
+ for (sModuleId in oModules) {
+ if (oModules.hasOwnProperty(sModuleId)) {
+ this.start(sModuleId);
+ }
+ }
+ sModuleId = null;
+ };
+ /**
+ * stop is the method that will finish the module if it was registered and started.
+ * When stop is called the module will call the destroy method and will nullify the instance.
+ * @member Module.prototype
+ * @param {String} sModuleId
+ */
+ Module.prototype.stop = function (sModuleId) {
+ var oModule = oModules[sModuleId];
+ if (typeof oModule !== "undefined" && !(oModule.instance == null)) {
+ oModule.instance.destroy();
+ oModule.instance = null;
+ }
+ };
+ /**
+ * stopAll is the method that will finish all the registered and started modules.
+ * @member Module.prototype
+ */
+ Module.prototype.stopAll = function () {
+ var sModuleId = '';
+ for (sModuleId in oModules) {
+ if (oModules.hasOwnProperty(sModuleId)) {
+ this.stop(sModuleId);
+ }
+ }
+ sModuleId = null;
+ };
+ /**
+ * _delete is a wrapper method that will call the native delete javascript function
+ * It's important to test the full code.
+ * @member Module.prototype
+ * @param {String} sModuleId
+ */
+ Module.prototype._delete = function (sModuleId) {
+ delete oModules[sModuleId];
+ };
+ /**
+ * remove is the method that will remove the full module from the oModules object
+ * @member Module.prototype
+ * @param {String} sModuleId
+ */
+ Module.prototype.remove = function (sModuleId) {
+ var oModule = oModules[sModuleId];
+ if (typeof oModule !== "undefined") {
+ oModules[sModuleId] = null;
+ this._delete(sModuleId);
+ }
+ };
+ /**
+ * type is a property to be able to know the class type.
+ * @member Action.prototype
+ * @type String
+ */
+ Action.type = "Action";
+ /**
+ * oActions is the property that will save the actions to be listened
+ * @member Action.prototype
+ * @type Object
+ */
+ Action.oActions = {};
+ /**
+ * listen is the method that will add a new action to the oActions object
+ * and that will activate the listener.
+ * @member Action.prototype
+ * @param {Array} aNotificationsToListen
+ * @param {Function} fpHandler
+ * @param {Object} oModule
+ */
+ Action.prototype.listen = function (aNotificationsToListen, fpHandler, oModule) {
+ var sNotification = '',
+ nNotification = 0,
+ nLenNotificationsToListen = aNotificationsToListen.length;
+
+ for (; nNotification < nLenNotificationsToListen; nNotification++) {
+ sNotification = aNotificationsToListen[nNotification];
+ if (typeof Action.oActions[sNotification] === "undefined") {
+ Action.oActions[sNotification] = [];
+ }
+ Action.oActions[sNotification].push({
+ module: oModule,
+ handler: fpHandler
+ });
+ }
+ };
+ /**
+ * notify is the method that will launch the actions that are listening the notified action
+ * @member Action.prototype
+ * @param oNotifier - Notifier.type and Notifier.data are needed
+ */
+ Action.prototype.notify = function (oNotifier) {
+ var sType = oNotifier.type,
+ oAction = null,
+ nAction = 0,
+ nLenActions = 0,
+ oActions = Action.oActions;
+
+ if (typeof oActions[sType] === "undefined") {
+ return;
+ }
+
+ nLenActions = oActions[sType].length;
+ for (; nAction < nLenActions; nAction++) {
+ oAction = oActions[sType][nAction];
+ oAction.handler.call(oAction.module, oNotifier);
+ }
+ sType = oAction = nAction = nLenActions = oActions = null;
+ };
+ /**
+ * stopListen removes the actions that are listening the aNotificationsToStopListen in the oModule
+ * @member Action.prototype
+ * @param {Array} aNotificationsToStopListen
+ * @param {Object} oModule
+ */
+ Action.prototype.stopListen = function (aNotificationsToStopListen, oModule) {
+ var sNotification = '',
+ aAuxActions = [],
+ nNotification = 0,
+ nLenNotificationsToListen = aNotificationsToStopListen.length,
+ nAction = 0,
+ nLenActions = 0,
+ oActions = Action.oActions;
+
+ for (; nNotification < nLenNotificationsToListen; nNotification++) {
+ sNotification = aNotificationsToStopListen[nNotification];
+ nLenActions = oActions[sNotification].length;
+
+ for (; nAction < nLenActions; nAction++) {
+ if (oModule !== oActions[sNotification][nAction].module) {
+ aAuxActions.push(oActions[sNotification][nAction]);
+ }
+ }
+ oActions[sNotification] = aAuxActions;
+ if (oActions[sNotification].length === 0) {
+ delete oActions[sNotification];
+ }
+ }
+ };
+ /**
+ * __restore__ is a private method to reset the oActions object to an empty object.
+ * @private
+ * @member Action.prototype
+ */
+ Action.prototype.__restore__ = function()
+ {
+ Action.oActions = {};
+ };
+ /*
+ * Hydra is the api that will be available to use by developers
+ */
+ Hydra = {
+ action: getAction,
+ errorHandler: getErrorHandler,
+ setErrorHandler: setErrorHandler,
+ module: new Module(),
+ setDebug: setDebug
+ };
+ /*
+ * This line exposes the private object to be accessible from outside of this code.
+ */
+ win.Hydra = Hydra;
+}(window, document));
View
1 versions/hydra.min.gzipped.js
@@ -0,0 +1 @@
+(function(j,m){var b={},a=null,o=false,d=function(){},h=function(){},f=function(){};function c(p){return Object.prototype.toString.call(p)==="[object Function]"}function n(){return f}function e(){return d}function g(p){d=p}function i(p){o=p}function l(q,s,r,p){q[s]=(function(u,t){return function(){var w=Array.prototype.slice.call(arguments,0);try{return t.apply(this,w)}catch(v){d.log(r,u,v)}finally{w=null}}}(s,p))}function k(r){if(typeof b[r]==="undefined"){throw new Error("The module is not registered!")}var q=b[r].creator(new f()),s="",p=function(){};if(!o){for(s in q){if(q.hasOwnProperty(s)){p=q[s];if(!c(p)){continue}l(q,s,r,p)}}}return q}d.type="ErrorHandler";d.list=null;d.create_dom=function(){var p=m.createElement("div"),r=m.createElement("ul"),q=p.style;q.display="none";q.position="fixed";q.height="100px";q.width="100%";q.bottom="0px";this.list=r;p.appendChild(r);m.body.appendChild(p);p=r=q=null};d.addItem=function(q,p,r){var s=m.createElement("li");s.appendChild(m.createTextNode(q+"/"+p+": "+r.message));this.list.appendChild(s);s=null};d.log=function(){var p=Array.prototype.slice.call(arguments,0);if(typeof window.console==="undefined"||(typeof p[p.length-1]=="boolean"&&!p[p.length-1])){if(this.list===null){this.create_dom()}this.addItem.apply(this,p);d.__old_log__=d.log;this.log=function(){var q=Array.prototype.slice.call(arguments,0);this.addItem.apply(this,q);q=null}}else{j.console.log.apply(j.console,p);d.__old_log__=d.log;this.log=function(){var q=Array.prototype.slice.call(arguments,0);j.console.log.apply(j.console,q);q=null}}p=null};h.prototype.type="Module";h.prototype.register=function(q,p){b[q]={creator:p,instance:null}};h.prototype.merge=function(s,p){var q={},r="";for(r in s){if(s.hasOwnProperty(r)){q[r]=s[r]}}for(r in p){if(p.hasOwnProperty(r)){q[r]=p[r]}}return q};h.prototype.extend=function(t,p){var v=b[t],q=this,u=null,s=null,r=null;if(typeof v==="undefined"){return}s=p(new f());u=v.creator(new f());r=this.merge(u,s),b[t]={creator:function(w){return r},instance:null};v=u=s=null};h.prototype.test=function(p,q){o=true;q(k(p));o=false};h.prototype.start=function(p,r){var q=b[p];if(typeof q!=="undefined"){q.instance=k(p);q.instance.init(r)}q=null};h.prototype.startAll=function(){var p="";for(p in b){if(b.hasOwnProperty(p)){this.start(p)}}p=null};h.prototype.stop=function(p){var q=b[p];if(typeof q!=="undefined"&&!(q.instance==null)){q.instance.destroy();q.instance=null}};h.prototype.stopAll=function(){var p="";for(p in b){if(b.hasOwnProperty(p)){this.stop(p)}}p=null};h.prototype._delete=function(p){delete b[p]};h.prototype.remove=function(p){var q=b[p];if(typeof q!=="undefined"){b[p]=null;this._delete(p)}};f.type="Action";f.oActions={};f.prototype.listen=function(t,r,u){var q="",p=0,s=t.length;for(;p<s;p++){q=t[p];if(typeof f.oActions[q]==="undefined"){f.oActions[q]=[]}f.oActions[q].push({module:u,handler:r})}};f.prototype.notify=function(s){var u=s.type,t=null,q=0,p=0,r=f.oActions;if(typeof r[u]==="undefined"){return}p=r[u].length;for(;q<p;q++){t=r[u][q];t.handler.call(t.module,s)}u=t=q=p=r=null};f.prototype.stopListen=function(v,t){var x="",u=[],w=0,p=v.length,r=0,s=0,q=f.oActions;for(;w<p;w++){x=v[w];s=q[x].length;for(;r<s;r++){if(t!==q[x][r].module){u.push(q[x][r])}}q[x]=u;if(q[x].length===0){delete q[x]}}};f.prototype.__restore__=function(){f.oActions={}};a={action:n,errorHandler:e,setErrorHandler:g,module:new h(),setDebug:i};j.Hydra=a}(window,document));
View
258 versions/hydra.min.js
@@ -0,0 +1,258 @@
+(function (j, m) {
+ var b = {},
+ a = null,
+ o = false,
+ d = function () {},
+ h = function () {},
+ f = function () {};
+ function c(p) {
+ return Object.prototype.toString.call(p) === "[object Function]"
+ }
+ function n() {
+ return f
+ }
+ function e() {
+ return d
+ }
+ function g(p) {
+ d = p
+ }
+ function i(p) {
+ o = p
+ }
+ function l(q, s, r, p) {
+ q[s] = (function (u, t) {
+ return function () {
+ var w = Array.prototype.slice.call(arguments, 0);
+ try {
+ return t.apply(this, w)
+ } catch (v) {
+ d.log(r, u, v)
+ } finally {
+ w = null
+ }
+ }
+ }(s, p))
+ }
+ function k(r) {
+ if (typeof b[r] === "undefined") {
+ throw new Error("The module is not registered!")
+ }
+ var q = b[r].creator(new f()),
+ s = "",
+ p = function () {};
+ if (!o) {
+ for (s in q) {
+ if (q.hasOwnProperty(s)) {
+ p = q[s];
+ if (!c(p)) {
+ continue
+ }
+ l(q, s, r, p)
+ }
+ }
+ }
+ return q
+ }
+ d.type = "ErrorHandler";
+ d.list = null;
+ d.create_dom = function () {
+ var p = m.createElement("div"),
+ r = m.createElement("ul"),
+ q = p.style;
+ q.display = "none";
+ q.position = "fixed";
+ q.height = "100px";
+ q.width = "100%";
+ q.bottom = "0px";
+ this.list = r;
+ p.appendChild(r);
+ m.body.appendChild(p);
+ p = r = q = null
+ };
+ d.addItem = function (q, p, r) {
+ var s = m.createElement("li");
+ s.appendChild(m.createTextNode(q + "/" + p + ": " + r.message));
+ this.list.appendChild(s);
+ s = null
+ };
+ d.log = function () {
+ var p = Array.prototype.slice.call(arguments, 0);
+ if (typeof window.console === "undefined" || (typeof p[p.length - 1] == "boolean" && !p[p.length - 1])) {
+ if (this.list === null) {
+ this.create_dom()
+ }
+ this.addItem.apply(this, p);
+ d.__old_log__ = d.log;
+ this.log = function () {
+ var q = Array.prototype.slice.call(arguments, 0);
+ this.addItem.apply(this, q);
+ q = null
+ }
+ } else {
+ j.console.log.apply(j.console, p);
+ d.__old_log__ = d.log;
+ this.log = function () {
+ var q = Array.prototype.slice.call(arguments, 0);
+ j.console.log.apply(j.console, q);
+ q = null
+ }
+ }
+ p = null
+ };
+ h.prototype.type = "Module";
+ h.prototype.register = function (q, p) {
+ b[q] = {
+ creator: p,
+ instance: null
+ }
+ };
+ h.prototype.merge = function (s, p) {
+ var q = {},
+ r = "";
+ for (r in s) {
+ if (s.hasOwnProperty(r)) {
+ q[r] = s[r]
+ }
+ }
+ for (r in p) {
+ if (p.hasOwnProperty(r)) {
+ q[r] = p[r]
+ }
+ }
+ return q
+ };
+ h.prototype.extend = function (t, p) {
+ var v = b[t],
+ q = this,
+ u = null,
+ s = null,
+ r = null;
+ if (typeof v === "undefined") {
+ return
+ }
+ s = p(new f());
+ u = v.creator(new f());
+ r = this.merge(u, s), b[t] = {
+ creator: function (w) {
+ return r
+ },
+ instance: null
+ };
+ v = u = s = null
+ };
+ h.prototype.test = function (p, q) {
+ o = true;
+ q(k(p));
+ o = false
+ };
+ h.prototype.start = function (p, r) {
+ var q = b[p];
+ if (typeof q !== "undefined") {
+ q.instance = k(p);
+ q.instance.init(r)
+ }
+ q = null
+ };
+ h.prototype.startAll = function () {
+ var p = "";
+ for (p in b) {
+ if (b.hasOwnProperty(p)) {
+ this.start(p)
+ }
+ }
+ p = null
+ };
+ h.prototype.stop = function (p) {
+ var q = b[p];
+ if (typeof q !== "undefined" && !(q.instance == null)) {
+ q.instance.destroy();
+ q.instance = null
+ }
+ };
+ h.prototype.stopAll = function () {
+ var p = "";
+ for (p in b) {
+ if (b.hasOwnProperty(p)) {
+ this.stop(p)
+ }
+ }
+ p = null
+ };
+ h.prototype._delete = function (p) {
+ delete b[p]
+ };
+ h.prototype.remove = function (p) {
+ var q = b[p];
+ if (typeof q !== "undefined") {
+ b[p] = null;
+ this._delete(p)
+ }
+ };
+ f.type = "Action";
+ f.oActions = {};
+ f.prototype.listen = function (t, r, u) {
+ var q = "",
+ p = 0,
+ s = t.length;
+ for (; p < s; p++) {
+ q = t[p];
+ if (typeof f.oActions[q] === "undefined") {
+ f.oActions[q] = []
+ }
+ f.oActions[q].push({
+ module: u,
+ handler: r
+ })
+ }
+ };
+ f.prototype.notify = function (s) {
+ var u = s.type,
+ t = null,
+ q = 0,
+ p = 0,
+ r = f.oActions;
+ if (typeof r[u] === "undefined") {
+ return
+ }
+ p = r[u].length;
+ for (; q < p; q++) {
+ t = r[u][q];
+ t.handler.call(t.module, s)
+ }
+ u = t = q = p = r = null
+ };
+ f.prototype.stopListen = function (v, t) {
+ var x = "",
+ u = [],
+ w = 0,
+ p = v.length,
+ r = 0,
+ s = 0,
+ q = f.oActions;
+ for (; w < p; w++) {
+ x = v[w];
+ s = q[x].length;
+ for (; r < s; r++) {
+ if (t !== q[x][r].module) {
+ u.push(q[x][r])
+ }
+ }
+ q[x] = u;
+ if (q[x].length === 0) {
+ delete q[x]
+ }
+ }
+ };
+ f.prototype.__restore__ = function () {
+ f.oActions = {}
+ };
+ a = {
+ action: n,
+ errorHandler: e,
+ setErrorHandler: g,
+ module: new h(),
+ setDebug: i
+ };
+ j.Hydra = a
+}(window, document));

0 comments on commit efb30a3

Please sign in to comment.
Something went wrong with that request. Please try again.