Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion common.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@
-D editor
-D no-deprecation-warnings
-D manual_sync_pad
-cp libs
-cp hide_js
-cp hide_js/libs
6 changes: 3 additions & 3 deletions hide/Element.hx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package hide;

typedef Element = #if hl hltml.JQuery #else js.jquery.JQuery #end;
typedef Event = #if hl hltml.Event #else js.jquery.Event #end;
typedef HTMLElement = #if hl hltml.Element #else js.html.Element #end;
typedef Element = #if hl Dynamic #else js.jquery.JQuery #end;
typedef Event = #if hl Dynamic #else js.jquery.Event #end;
typedef HTMLElement = #if hl Dynamic #else js.html.Element #end;

function getVal( e : Element ) {
return #if js e.val() #else e.getValue() #end;
Expand Down
5 changes: 4 additions & 1 deletion hide/tools/IdeData.hx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ class IdeData {
if( dbWatcher == null )
dbWatcher = fileWatcher.register(databaseFile,function() {
loadDatabase(true);
#if js
hide.comp.cdb.Editor.refreshAll(true);
#end
});
}

Expand All @@ -237,7 +239,7 @@ class IdeData {
if( stats.mtime.getTime() != lastStats.mtime.getTime() )
throw "Save when database is changed outside of Hide. Please reload Hide.";
}

#if js
hide.comp.cdb.DataFiles.save(function() {
if( databaseDiff != null ) {
checkBeforeWrite();
Expand Down Expand Up @@ -269,6 +271,7 @@ class IdeData {
hide.comp.cdb.Editor.restoreOptionals(backup);
}
}, forcePrefabs);
#end
}

public function fileExists( path : String ) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.